package com.bdqn.carrental.service;

import com.bdqn.carrental.dao.OrdersMapper;
import com.bdqn.carrental.pojo.OrdersEntity;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@MapperScan("com.bdqn.carrental.dao")
public class OrdersServiceImpl implements OrdersService {
    @Autowired
    OrdersMapper ordersMapper ;
/*    @Override
    public List<OrdersEntity> SelectOrders(String num) {
        List<OrdersEntity>lists=ordersMapper.SelectOrders(num);
        return lists;
    }*/

    @Override
    public List<OrdersEntity> finall() {
        List<OrdersEntity>lists=ordersMapper.findAll();
        return lists;
    }
}
